# param ($run)
# $out = "$([System.IO.Path]::GetFileNameWithoutExtension($($run))).exe"
# & "cmd" "/c" "$out"
# & "cmd" "/c" "rm" "$out"


$exec = [System.IO.Path]::GetFileNameWithoutExtension($args[0])
& "g++" "$exec.cpp" "-o" "$exec"
& "cmd" "/c" "$exec.exe"
& "cmd" "/c" "rm" "$exec.exe"